﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Net;
using System.IO;

namespace DotNETX.GIS.Web
{
    public class WebRequest
    {
        
        public static string Open(string url)
        {
            WebClient client = new WebClient();
            string result;
            using (Stream s = client.OpenRead(url))
            {
                TextReader tr = new StreamReader(s);
                result = tr.ReadToEnd();
            }
            return result;
        }
    }
}